﻿using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using System;
using System.Collections.Generic;
using System.Text;

namespace SignalRServer
{
    public static class SignalRBuilder
    {

        public static void RegSignalR(this IApplicationBuilder app)
        {
            app.UseSignalR(routes =>
            {
                routes.MapHub<Chats>("/chat");
            });
            
        }
    }
}
